package com.datareport.data.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.datareport.data.entity.DerivedInfo;
import com.datareport.data.mapper.DerivedInfoMapper;
import com.datareport.data.service.DerivedInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author DataReport
 * @since 2021-11-18
 */
@Service
public class DerivedInfoServiceImpl extends ServiceImpl<DerivedInfoMapper, DerivedInfo> implements DerivedInfoService {

    @Autowired
    DerivedInfoMapper derivedInfoMapper;
    @Override
    public Page<DerivedInfo> selectAll(Integer pageNum, Integer pageSize) {
        Page<DerivedInfo> page = new Page<>(pageNum, pageSize);

        Page<DerivedInfo> pageParams = derivedInfoMapper.selectPage(page, null);

        return pageParams;
    }


}
